Crate puffin_http
source ·Expand description
puffin_server
is a library for streaming puffin
profiler data over TCP.
§How to use
Add a puffin_http
Server
to the profiled application.
When the server is started, puffin_viewer
application can connect to it and display profiling information.
let server_addr = format!("127.0.0.1:{}", puffin_http::DEFAULT_PORT);
let _puffin_server = puffin_http::Server::new(&server_addr).unwrap();
eprintln!("Serving demo profile data on {server_addr}. Run `puffin_viewer` to view it.");
puffin::set_scopes_on(true);
Structs§
- Connect to a
crate::Server
, reading profile data and feeding it to apuffin::FrameView
. - Listens for incoming connections and streams them puffin profiler data.
Constants§
- The default TCP port used.
- Bumped on protocol breakage.